package cn.buk.tms.entity.order;

import cn.buk.tms.entity.base.BaseInfo;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;

/**
 * 订单附件
 */
@Entity
@Table(name = "order_attachment")
public class OrderAttachment extends BaseInfo {

  /**
   * 订单类型
   */
  @Column(name = "order_type")
  private int orderType;

  /**
   * 实际对应的订单Id
   */
  @Column(name = "order_id")
  private int orderId;

  /**
   * 附件文件名
   */
  @Column(name = "file_name", length = 500)
  private String fileName;

  /**
   * 附件描述
   */
  @Column(length = 500)
  private String description;

  /**
   * 对应AzureStorageFileNameMapping的id
   */
  @Column(name = "blob_id")
  private int blobId;




  public int getOrderType() {
    return orderType;
  }

  public void setOrderType(int orderType) {
    this.orderType = orderType;
  }

  public int getOrderId() {
    return orderId;
  }

  public void setOrderId(int orderId) {
    this.orderId = orderId;
  }

  public String getFileName() {
    return fileName;
  }

  public void setFileName(String fileName) {
    this.fileName = fileName;
  }

  public String getDescription() {
    return description;
  }

  public void setDescription(String description) {
    this.description = description;
  }

  public int getBlobId() {
    return blobId;
  }

  public void setBlobId(int blobId) {
    this.blobId = blobId;
  }
}
